package com.app.mymusic.test.dagger2;

import dagger.Module;
import dagger.Provides;

/**
 * Created by Administrator on 2016/11/29.
 */
@Module
public class DaggerModule {
    private DaggerActivity a;

    public DaggerModule(DaggerActivity a) {
        this.a = a;
    }

    @Provides
    DaggerPresenter provideDaggerPresenter(User user){
        return new DaggerPresenter(a,user);
    }
    @Provides
    DaggerActivity provideDaggerActivity(){
        return a;
    }
    @Provides
    User provideUser(){
       return  new User();
    }
}
